package yaner.hotel.manager.resource.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import yaner.hotel.manager.common.enums.RoomTypeEnums;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("t_room_type_info")
public class RoomType {
    /**
     * 房间类型id
     */
    @TableId
    private String roomTypeId;
    /**
     * 类型名称
     */
    private String roomTypeName;
    /**
     * 类型编码
     */
    private RoomTypeEnums roomTypeCode;
    /**
     * 类型状态
     */
    private String roomTypeStatus;
    /**
     * 类型描述
     */
    private String roomTypeDesc;
    @DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyyMMdd HH:mm:ss")
    private Date updateTime;
}
